#ifndef _MATH_H
#define _MATH_H

#define EPSILON			0.001f
#define PI				3.14159F
#define TWOPI			2 * PI

#define MIN_FLOAT		0.000000001F
#define MAX_FLOAT		100000000.0f

#define DEGTORADFACTOR	(PI / 180.0F)
#define DEGTORAD(x)		((x) * DEGTORADFACTOR)
#define RADTODEG(x)		((x) * 180.0F / PI)
#define ZeroVector(v)	(v.x = v.y = v.z = 0.0F)
#define PLANE_BACKSIDE	0x000001
#define PLANE_FRONT		0x000010
#define ON_PLANE		0x000100

#define MAX(x,y) ((x > y) ? x : y)
#define MIN(x,y) ((x > y) ? y : x)
#define CLAMP(x,max,min) ((x > max) ? max : ((x < min) ? min : x))


struct Vector3f; 
struct Vector2f; 
struct Vector2i; 
struct Planef; 
struct Matrix4f; 

#include <math.h>

#endif
